<wx:page
 class="x-page"
 id="page"
 navigationBarTitleText="当前商品信息"
 style=""
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on"
 xmlns:wx="$UI/wxsys/comps">
<wx:model
 id="model"
 style="left:0px;top:0px;height:auto;position:absolute">
<wx:wxApi
 id="wxapi"
 label="通用接口"/>
<wx:commonOperation
 id="commonOperation"
 label="操作扩展"
 xmlns:wx="$UI/wxsys/comps"/>
<param
 id="default0"
 label="商品ID"
 name="param0"
 type="String"
 xid="xid_1549274745467_0"/>
<wx:restData
 _created="true"
 auto="load"
 className="/main/shangpin1"
 id="restData"
 label="商品"
 url="/dbrest">
<filter
 _filter_label="主键 等于 params.param0"
 id="restDatafilter"
 name="_system1_">eq('fid',params.param0)</filter></wx:restData>
<wx:restData
 _created="true"
 allowEmpty="true"
 auto="load"
 className="/main/yonghufjxx"
 id="restData1"
 label="用户附加信息"
 url="/dbrest"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on">
<filter
 _filter_label="用户ID 等于 商品.卖家ID"
 id="restDatafilter1"
 name="_system1_">eq('fyonghuid',restData.current.fmaijiaid/*{&quot;dependencies&quot;:[&quot;restData&quot;]}*/)</filter></wx:restData></wx:model>
<wx:loading
 class="weui-loader-full {{$state.loadingNum &lt;= 0 ?'weui-loader-hide':''}}"
 style="z-index: 10001;"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on"
 xmlns:wx="$UI/wxsys/comps">
<view
 class="ball-scale-ripple-multiple">
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/></view></wx:loading>
<wx:inVisibleCompContainer
 id="inVisibleCompContainer"/>
<wx:panel
 class="x-panel x-full"
 id="panel">
<wx:content
 class="x-panel-content"
 id="content"
 style="top:0px;bottom:48px;background-color:#F3F3F3">
<view
 id="view"
 style="margin-left:5px;margin-right:5px;margin-top:5px;margin-bottom:8px;background-color:#FFFFFF">
<wx:row
 class="x-row"
 id="row">
<wx:col
 class="x-col x-col-fixed"
 id="col">
<wx:image
 bind:src="restData.current.ftupian"
 class="weui-img weui-img_circle"
 id="image"
 mode="scaleToFill"
 previewImage="true"
 style="width:80px;height:80px"/></wx:col>
<wx:col
 class="x-col"
 id="col1">
<wx:text
 bind:text="restData.current.fmingcheng"
 class=" c-tworow"
 id="text"
 style="font-weight:bold;color:#ff9900;display:block;height:28px;text-align:left;font-size:20px">商品名</wx:text>
<wx:text
 bind:text="&quot;￥&quot; + restData.current.fjiage"
 id="text2"
 style="color:#FF0000">现价</wx:text>
<wx:text
 bind:text="&quot;￥&quot; + restData.current.fshichangj"
 id="text3"
 style="display:block;font-size:13px;text-decoration:line-through;color:#CCCCCC">原价</wx:text></wx:col></wx:row></view>
<view
 id="view1"
 style="background-color:#FFFFFF;margin-left:5px;margin-right:5px">
<wx:text
 id="text4"
 style="font-size:20px;font-weight: bold;color:#0000FF">商品简介</wx:text>
<wx:text
 bind:text="restData.current.fjianjie"
 id="text5"
 style="display:block;font-style: italic;margin-left:10px;margin-right:10px">简介内容</wx:text>
<wx:attachmentImage
 bind:ref="restData.current.ftupian"
 class="{{$state.count == 1?'weui-uploader__img':''}}"
 compDisabled="true"
 id="attachmentImage"
 showTitle="false"
 statics="false"
 style="height:102px"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:wx="$UI/wxsys/comps">
<view
 class="weui-cells"
 id="view3"
 wx:if="{{$state.count  &gt; 1&amp;&amp; $state.commonMode == false}}">
<view
 class="weui-cell"
 id="view4">
<view
 class="weui-cell__bd"
 id="view5">
<view
 class="weui-uploader"
 id="view6">
<view
 class="weui-uploader__hd"
 id="view7"
 style="display:none">
<view
 class="weui-uploader__title"
 id="view8">{{$state.name}}</view>
<view
 class="weui-uploader__info"
 id="view9">{{$state.attachments.length}} / {{$state.count}}</view></view>
<view
 class="weui-uploader__bd"
 id="view10">
<block
 id="default1"
 wx:for-item="_attachmentItem"
 wx:for="{{$state.attachments}}">
<view
 class="weui-uploader__file {{_attachmentItem.previewImageUrl == '//:0'?'weui-uploader__file_status':''}} {{$state.autoLayout}}"
 data-store-file-name="{{_attachmentItem.storeFileName}}"
 id="view11"
 style="position:relative;margin:.4em .4em 0 0;"
 wx:if="{{_attachmentItem.documentType=='image'}}">
<image
 class="{{$state.largeImage?'weui-uploader__large_img':'weui-uploader__img'}}"
 data-store-file-name="{{_attachmentItem.storeFileName}}"
 id="image1"
 mode="{{$state.imageMode}}"
 on:tap="$comp.previewOrDeleteImage"
 src="{{_attachmentItem.previewImageUrl}}"/>
<view
 class="weui-badge"
 data-store-file-name="{{_attachmentItem.storeFileName}}"
 id="view12"
 on:tap="$comp.deleteImage"
 style="position: absolute;top: -.4em;right: -.4em;"
 wx:if="{{$state.deleBox}}">X</view>
<view
 class="weui-uploader__file-content"
 id="view13"
 wx:if="{{_attachmentItem.percent &lt; 100}}">{{_attachmentItem.percent}}%</view></view>
<view
 class="weui-uploader__file {{_attachmentItem.previewImageUrl == '//:0'?'weui-uploader__file_status':''}}  {{$state.autoLayout}}"
 data-store-file-name="{{_attachmentItem.storeFileName}}"
 id="view14"
 style="position:relative;margin:.4em .4em 0 0;"
 wx:elif="{{_attachmentItem.documentType=='video'}}">
<video
 bind:id="'myVideo'+_attachmentItem.storeFileName"
 class="weui-uploader__img"
 controls="{{true}}"
 direction="0"
 id="default2"
 on:fullscreenchange="$comp.screenchange"
 on:play="$comp.playVideoFullScreen"
 src="{{_attachmentItem.previewImageUrl}}"/>
<view
 class="weui-badge"
 data-store-file-name="{{_attachmentItem.storeFileName}}"
 id="view15"
 on:tap="$comp.deleteVideo"
 style="position: absolute;top: -.5em;right: -1em;"
 wx:if="{{$state.deleBox}}">X</view>
<view
 class="weui-uploader__file-content"
 id="view16"
 wx:if="{{_attachmentItem.percent &lt; 100}}">{{_attachmentItem.percent}}%</view></view>
<view
 class="weui-uploader__file {{_attachmentItem.previewImageUrl == '//:0'?'weui-uploader__file_status':''}}"
 data-store-file-name="{{_attachmentItem.storeFileName}}"
 id="view17"
 style="position:relative;margin:.4em .4em 0 0;"
 wx:elif="{{_attachmentItem.documentType=='record'}}">
<view
 class="recordModel {{$state.largeImage?'weui-uploader__large_img':'weui-uploader__img'}}"
 id="view18"
 on:tap="$comp.playVoiceAnimate">
<image
 class="recordImg"
 data-audioID="{{_attachmentItem.audioID}}"
 data-audioUrl="{{_attachmentItem.previewImageUrl}}"
 id="image2"
 src=""/>
<image
 class="recordSty"
 id="image3"
 src=""
 wx:if="{{$state.playPic== _attachmentItem.audioID+2}}"/>
<image
 class="recordSty"
 id="image4"
 src=""
 wx:if="{{$state.playPic== _attachmentItem.audioID+3}}"/>
<image
 class="recordSty"
 id="image5"
 src=""
 wx:if="{{$state.playPic== _attachmentItem.audioID+4}}"/>
<image
 class="recordSty"
 id="image6"
 src=""
 wx:if="{{$state.playPic== _attachmentItem.audioID+5}}"/>
<view
 class="second"
 id="view19"
 wx:if="{{_attachmentItem.duration}}">
<text
 id="default3">{{_attachmentItem.duration}}''</text></view></view>
<view
 class="weui-badge"
 data-store-file-name="{{_attachmentItem.storeFileName}}"
 id="view20"
 on:tap="$comp.deleteVideo"
 wx:if="{{$state.deleBox}}">X</view>
<view
 class="weui-uploader__file-content"
 id="view21"
 wx:if="{{_attachmentItem.percent &lt; 100}}">{{_attachmentItem.percent}}%</view></view></block>
<view
 class="{{$state.largeImage?'weui-uploader__large_input-box':'weui-uploader__input-box'}}"
 id="view22"
 style="margin-top:.4em;display:none"
 wx:if="{{$state.mode == 'upload' &amp;&amp; ($state.attachments.length &lt; $state.count)}}">
<view
 class="weui-uploader__input"
 id="view23"
 on:tap="$comp.chooseImage"
 style="padding-top:.4em"/></view></view></view></view></view></view>
<block
 id="default4"
 wx:if="{{$state.count == 1 &amp;&amp;  $state.commonMode == false}}">
<view
 class="{{$state.attachments[0]?'simpleImage':'weui-uploader__input-box'}}"
 id="view24"
 wx:if="{{$state.attachments[0].documentType !='video'}}">
<image
 class="{{$state.attachments[0].previewImageUrl == ''?'weui-uploader__file_status':''}}"
 id="image7"
 mode="{{$state.imageMode}}"
 on:tap="$comp.replaceImage"
 src="{{$state.attachments[0].previewImageUrl}}"
 style="width:100%;height:100%"/></view>
<view
 class="{{$state.attachments[0]?'simpleImage':'weui-uploader__input-box'}}"
 id="view25"
 wx:if="{{$state.attachments[0].documentType =='video'}}">
<video
 bind:id="'onlyVideo'+$state.attachments[0].storeFileName"
 class="simpleVideo"
 controls="{{true}}"
 direction="0"
 id="default5"
 on:fullscreenchange="$comp.screenchange"
 on:play="$comp.playVideoFullScreen"
 src="{{$state.attachments[0].previewImageUrl}}"/></view></block>
<view
 class="weui-uploader__img"
 id="view26"
 wx:if="{{$state.commonMode}}">
<image
 id="image8"
 mode="{{$state.imageMode}}"
 on:tap="$comp.replaceImage"
 src="{{$state.commonModeImg ? $state.commonModeImg: $state.attachments[0].previewImageUrl}}"
 style="height:100%;width:100%"/></view>
<view
 class="{{$state.chooseRecord?'popUpView':'popViewHigh'}}"
 id="view27">
<view
 class="closePopUp"
 id="view28"
 on:tap="$comp.closeModel">
<text
 id="default6">X</text></view>
<view
 class="contentView"
 id="view29">
<view
 class="talkView"
 id="view30">
<text
 id="default7">{{$state.recordFont}}</text></view>
<view
 class="recordView"
 id="view31"
 on:touchend="$comp.speakTouchUp"
 on:touchstart="$comp.speakTouchDown"
 wx:if="{{$state.recordMode == 'touch'}}">
<image
 class="record"
 id="image9"
 src=""/></view>
<view
 class="recordView"
 id="view32"
 on:tap="$comp.startAndendRecord"
 wx:if="{{$state.recordMode == 'click'}}">
<image
 class="record"
 id="image10"
 src=""/></view></view></view>
<audio
 controls="{{false}}"
 id="myAudio"
 on:ended="$comp.audioEnd"
 style="position:absolute"/>
<block
 id="default8">
<view
 class="speak-auto"
 id="view33"
 wx:if="{{$state.isSpeaking}}">
<view
 class="speak-style"
 id="view34">
<image
 class="sound-style"
 id="image11"
 src=""/>
<image
 class="sound-style"
 id="image12"
 src=""
 wx:if="{{$state.pictures==2}}"/>
<image
 class="sound-style"
 id="image13"
 src=""
 wx:if="{{$state.pictures==3}}"/>
<image
 class="sound-style"
 id="image14"
 src=""
 wx:if="{{$state.pictures==4}}"/>
<image
 class="sound-style"
 id="image15"
 src=""
 wx:if="{{$state.pictures==5}}"/></view></view></block></wx:attachmentImage>
<wx:row
 bind:hidden="wx.Util.iif(restData.current.fyuanlianj!=&quot;&quot;,false,true)"
 class="x-row"
 id="row4">
<wx:col
 class="x-col x-col-fixed"
 id="col4">
<wx:text
 id="text15">详见：</wx:text></wx:col>
<wx:col
 class="x-col"
 id="col7">
<wx:input
 bind:ref="restData.current.fyuanlianj"
 id="input"
 placeholder=""/></wx:col></wx:row></view>
<view
 id="view2"
 style="background-color:#FFFFFF;margin-top:8px;margin-left:5px;margin-right:5px">
<wx:text
 id="text1"
 style="font-size:20px;font-weight: bold;color:#0000FF">卖家信息</wx:text>
<wx:row
 class="x-row"
 id="row1">
<wx:col
 class="x-col x-col-fixed"
 id="col2">
<wx:text
 id="text6">手机号：</wx:text></wx:col>
<wx:col
 class="x-col"
 id="col3">
<wx:text
 bind:text="restData1.current.fshoujih"
 id="text10">2017......</wx:text></wx:col></wx:row>
<wx:row
 class="x-row"
 id="row2">
<wx:col
 class="x-col x-col-fixed"
 id="col5">
<wx:text
 id="text7">姓名：</wx:text></wx:col>
<wx:col
 class="x-col"
 id="col6">
<wx:text
 bind:text="restData1.current.fxingming"
 id="text11">无名氏</wx:text></wx:col></wx:row>
<wx:row
 class="x-row"
 id="row3">
<wx:col
 class="x-col x-col-fixed"
 id="col8">
<wx:text
 id="text8">位置：</wx:text></wx:col>
<wx:col
 class="x-col"
 id="col9">
<wx:text
 bind:text="restData1.current.fsushem + restData1.current.fzuohao"
 id="text12">云天苑D座</wx:text></wx:col></wx:row>
<wx:row
 class="x-row"
 id="row5">
<wx:col
 class="x-col x-col-fixed"
 id="col14">
<wx:text
 id="text9">信用分：</wx:text></wx:col>
<wx:col
 class="x-col"
 id="col15">
<wx:text
 bind:text="restData1.current.fxinyongf"
 id="text13">数值</wx:text></wx:col></wx:row></view></wx:content>
<wx:bottom
 class="x-panel-bottom"
 id="bottom"/></wx:panel>
<resource
 id="resource">
<require
 id="require"
 url="css!$UI/main/common.css"/></resource></wx:page>___js___:import PageImpl from "$UI/wxsys/lib/base/pageImpl";var app = getApp();export default class IndexPage extends PageImpl {constructor(...args){super(...args);}}